package org.softee.messaging.processor;

import java.util.ArrayList;
import java.util.List;

public class MultiplyProcessor implements Processor {
    private final int count;

    public MultiplyProcessor(int count) {
        this.count = count;
    }

    @Override
    public List<String> process(String message) {
        List<String> results = new ArrayList<String>(count);
        for (int i = 0; i < count; i++) {
            results.add(message + "/" + (i + 1));
        }
        return results;
    }
}